OmniWeb Help

OmniWeb Help : Editing Source

Editing Source

Using the View in Source Editor command in the View menu, you can view and edit the HTML code that makes up a webpage.

OmniWeb's source editor has a rather unique feature: as you edit an HTML page, you can view your changed document in the browser as if it had come from the server. Your modified page is treated just as if it had been downloaded from the remote site -- inline images, relative links, and forms will still work. You can use this to try out modifications to one of your pages before saving it. Or just to look at a remote page in a different way. If the page's author used a hard-to-read color, or a tiny font, you can just edit the page and make it easier to read. Or if you think Apple's home page would be better with your name in 36-point type across the top, just put it there and see how it looks!

To view edited source in a browser window, choose Redisplay in Browser ⇧⌘V from the View menu, or click the Redisplay button on the source window toolbar.

Saving Changes to HTML Source

OmniWeb offers two ways to save HTML that you've edited: you can save it to disk, or you can send it back to the server from whence it came. The latter isn't always possible, as it depends on whether the server allows it. For FTP servers, you must be logged in as a user who has write permission to the file. For HTTP servers, you need to be authorized to use the HTTP PUT command.

To save the source you're editing to a locally mounted disk (that is, any disk you can browse to in Finder), click the Save button in the source window toolbar or choose the Save or Save As... commands from the File menu.

To save the source you're editing back to the server it came from, click the Store button in the source window toolbar.

Also, OmniWeb can be configured to recognize when you're editing source on your own web site. If the web pages your server uses are stored on your hard disk (or another volume which you can access in Finder), configure the Local HTTP Server settings in Source View Preferences. OmniWeb will then recognize when pages fetched via HTTP came from this server, and automatically save them to the right place when you use the Save command.

Viewing Other Page Source Files

Often, web pages are made up of more than one source file. JavaScripts and Cascading Style Sheets are commonly stored in separate files that are linked to from the main HTML document.

To view a list of the resources that make up a page you are viewing, simply open the Page Info panel. A View Source button on that panel allows you to open the selected file into a source editing window.

Copyright © 2004-2005 The Omni Group